@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  font-size: 14px;
  background-color: #fff;
  &::-webkit-scrollbar {
    height: 6px;
    width: 6px;
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #ccc;
  }
  &::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #f5f7f9;
  }
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 0px 20px 20px;
  background-color: #fff;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

// vue-treeselect
.vue-treeselect .vue-treeselect__input-container .vue-treeselect__input {
  line-height: inherit;
  vertical-align: inherit;
}
.vue-treeselect__control{
  height: 34px;
  line-height: 34px;
}

// el-form-item
.label-line-18 label{
  line-height: 18px !important;
  white-space: pre-line;
}
.form-detail-box{
  .el-form-item {
    margin-bottom: 4px;
  }
}
.el-form-item{
  .size-mini {
    .el-upload-list.el-upload-list--picture-card .el-upload-list__item{
      margin: 4px 8px 4px 0 !important;
    }
    .el-upload--picture-card{
      margin: 4px 0 4px 0 !important;
    }
    &.hide .el-upload-list.el-upload-list--picture-card .el-upload-list__item:last-child{
      margin-right: 0 !important;
    }
  }
  .image-preview{
    .el-image {
      margin: 4px 8px 4px 0 !important;
    }
  }
}

// el-select width-100%
.el-row{
  .el-select,.el-cascader,.el-input-number,.el-date-editor{
    width: 100%;
  }
}

// 默认图片尺寸
.default-img-80{
  width: 80px;
  height: 80px;
}

// 标题
.item-title-box{
  font-size: 16px;
  font-weight: bold;
  position: relative;
  z-index: 2;
  padding-left: 20px;
  border-bottom: 1px solid #eee;
  height: 45px;
  line-height: 45px;
  &:after{
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    z-index: -1;
    background: #1890ff;
    height: 14px;
    width: 4px;
    border-radius: 10px;
  }
}
// 抽屉内容
.el-drawer__body .drawer-content-item{
  background: #fff;
  position: relative;
  .userinfo-icon{
    color: #1890ff;
    font-size: 16px;
    font-weight: bold;
    margin-right: 5px;
  }
  .order-right-btn{
    position: absolute;
    top: 12px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    .order-status-img{
      margin-top: 8px;
      img{
        vertical-align: bottom;
        width: 70px;
        height: 70px;
        margin-left: 15px;
      }
    }
    .el-button:hover, .el-button:focus {
      color: #FFFFFF;
      background-color: #1890ff;
      border-color: #1890ff;
    }
  }
  .content-padding{
    padding: 20px;
  }
  .form-content-padding{
    padding: 20px 20px 5px;
  }
  .el-tabs--card{
    > .el-tabs__header{
      border-bottom: 2px solid #1890ff;
      margin-bottom: 0;
      .el-tabs__nav{
        border:0;
        margin-left: 15px;
      }
      .el-tabs__item{
        border-left:0;
        color: #999;
        &:hover{
          color: #1890ff;
        }
      }
      .el-tabs__item.is-active{
        border-radius: 20px 20px 0 0;
        background: #1890ff;
        color: #fff;
        border-bottom: 2px solid #1890ff;
        &:before,
        &:after {
          content: ""; /* 设置空内容 */
          position: absolute; /* 设置绝对定位 */
          width: 20px; /* 设置宽度 */
          height: 20px; /* 设置高度 */
          bottom: -2px; /* 设置底部对齐 */
          background: #1890ff; /* 设置背景色 */
          top: auto;
          left: auto;
        }
        &:before {
          left: -19px; /* 设置左边位置 */
          background: radial-gradient(circle at 0 0,transparent 19px,#1890ff 20px);
        }

        &:after {
          right: -19px; /* 设置右边位置 */
          background: radial-gradient(circle at 20px 0,transparent 19px,#1890ff 20px); 
        }
      }
    }
    .el-tabs__item{
      padding: 0 30px !important;
      font-size: 15px;
      height: 43px;
      line-height: 46px;
      transition: none;
    }
  }
  &+.drawer-content-item{
    border-top: 6px solid #f5f5f5;
  }
  .el-form--label-top{
    &+.el-form--label-top{
      border-top: 6px solid #f5f5f5;
    }
  }
  .form-detail-top-box{
    padding: 20px 20px 5px;
    .el-form-item{
      margin-bottom: 18px;
      .el-form-item__label{
        line-height: 1.2;
        color: #888;
        font-weight: initial;
        padding-bottom: 8px;
      }
      .el-form-item__content{
        color: #1f1f1f;
        line-height: 1.4;
      }
    }
  }
}
// 抽屉底部按钮
.drawer-footer{
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  background: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  box-shadow: 0 -1px 1px #eee;
}

.disabled-select{
  width: 100%;
  .el-input__inner{
    cursor: pointer;
  }
  .el-tag__close.el-icon-close{
    display: none;
  }
  &.is-disabled{
    .el-input__inner{
      cursor: no-drop;
    }
  }
}
.el-input.is-disabled .el-input__inner,.el-textarea.is-disabled .el-textarea__inner,.el-range-editor.is-disabled,.el-range-editor.is-disabled input,.vue-treeselect.vue-treeselect--disabled .vue-treeselect__control {
  color: #333;
  background-color: transparent;
  cursor: initial !important;
  &::-webkit-input-placeholder {
    color: transparent;
  }
  &:-moz-placeholder {
    color: transparent;
  }
  &::-moz-placeholder {
    color: transparent;
  }
  &:-ms-input-placeholder {
    color: transparent;
  }
}
.el-input.is-disabled .el-input__icon,.vue-treeselect--disabled .vue-treeselect__control-arrow-container{
  display: none;
}
.el-radio__input.is-disabled.is-checked .el-radio__inner{
  border-color: #1890ff;
  background: #1890ff;
  cursor: initial;
  &::after {
    cursor: initial;
    background-color: #F5F7FA;
  }
}
.el-radio__input.is-disabled.is-checked + span.el-radio__label {
  color: #1890ff;
  cursor: initial;
}
.detail-ql-editor{
  color: #333;
  border:1px solid #dfe4ed;
  background-color: none;
  padding: 0 15px;
  border-radius: 4px;
  max-height: 400px;
}
.detail-multiLine{
  line-height: 1.5;
  margin-top: 8px;
}
.button-margin-0{
  .el-button + .el-button{
    margin: 0;
  }
}
.dept-tree-scrollbar{
  height: 410px;
}
.radio-hide-label .el-radio__label{
  display: none;
}
.dialog-footer{
  position: relative;
  .pagination-container{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
}

.order-progress-box{
  display: flex;
  padding: 20px 30px 20px 20px;
  >div{
    padding: 0px 0px 0 20px;
    line-height: 40px;
    background: #eee;
    color: #666;
    position: relative;
    margin-right: 10px;
    flex: 1;
    text-align: center;
    font-size: 15px;
    &:after{
      content: '';
      display: block;
      border-top: 20px solid transparent;
      border-bottom: 20px solid transparent;
      border-left: 20px solid #eee;
      position: absolute;
      right: -20px;
      top: 0;
      z-index: 10;
    }
    &:before{
      content: '';
      display: block;
      border-top: 20px solid #eee;
      border-bottom: 20px solid #eee;
      border-left: 20px solid #fff;
      position: absolute;
      left: 0px;
      top: 0;
    }
    &:first-child {
      border-radius: 20px 0 0 20px;
      &:before {
        display: none;
      }
    }
    &:last-child {
      flex: 1.1;
      border-radius: 0 20px 20px 0;
      margin-right: 0;
      padding-left: 10px;
      &:after {
        display: none;
      }
    }
    &.active {
      background-color: #1890ff;
      color: #fff;
      &:after {
        border-left-color: #1890ff;
      }
      &:before {
        border-top-color: #1890ff;
        border-bottom-color: #1890ff;
      }
    }
  }
}
.el-table{
  .form-detail-box{
    margin-bottom: 0;
    .el-form-item{
      margin-bottom: 0;
      .el-form-item__label{
        padding: 0 6px 0 0;
      }
    }
  }
}
.table-expand-hide{
  .el-table__row.expanded td:first-child,.el-table__body colgroup col:first-child,.el-table__header colgroup col:first-child,.el-table__header tr th:first-child{
    width: 0;
  }
  .el-table__expand-icon--expanded{
    display: none;
  }
}
.table-handle{
  text-align: center;
  .el-button--mini{
    display: block;
    margin: auto;
    padding: 5px 10px;
    &+ .el-button--mini {
      margin-top: 10px;
    }
  }
}
// 驳回原因
.reject-remark-box{
  padding: 16px;
  background-color: #fffbf0;
  border-radius: 4px;
  border-left: 5px solid #ffc107;
  color: #FF9800;
  font-size: 15px;
}
// 合规办理进展
.process-compliance-box{
  padding: 20px;
  .process-compliance-item{
    position: relative;
    padding: 0 0 20px 25px;
    &:before{
      content: "";
      border-left: 1px dashed #91caff;
      height: calc(100% - 10px);
      position: absolute;
      left: 5px;
      top: 17px;
      z-index: 2;
    }
    &:after{
      content: "";
      width: 11px;
      height: 11px;
      background-color: #fff;
      border: 2px solid #1890ff;
      position: absolute;
      left: 0;
      top: 6px;
      z-index: 3;
      border-radius: 50%;
    }
    &:last-child:before{
      height: 0;
    }
  }
}
// 颂车申请进展
.detail-plain-table{
	border-collapse: collapse;
	width: 100%;
  margin-top: 10px;
  .header-bg{
    background-color: #f5f5f5;
    font-weight: bold;
    text-align: center;
  }
	tr{
		td{
			border:1px solid #dfe6ec;
			padding:10px 15px;
		}
	}
}